<!--上传文件-->
<link rel="stylesheet" href="__STATIC__/admin/css/edit_common.css">

<link rel="stylesheet"type="text/css"href="__STATIC__/admin/uploadify/uploadify.css" />


<style>
    #commodity_main input[type=text]{width: 98%;}
    #commodity_main input[type=file]{margin-bottom: 10px;}
    #commodity_main img{width: 120px;height: 120px;border-radius: 50%;background-color: #FFFFFF;border-color:#FFFFFF;}
</style>

<div id="commodity_details">
    <h1 style="margin-top: 0px!important;">
        <img src="__STATIC__/admin/img/ico.png">
        添加底部轮播
        <a href="javascript:history.go(-1);"><span><img src="__STATIC__/admin/img/return.png"></span></a>
    </h1>
    </h1>
</div>

<div class="page-content">
    <div class="row">
        <div class="col-xs-12">
            <!-- PAGE CONTENT BEGINS -->
            <form class="form-horizontal" role="form" method="post" url="{:url()}" >
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right"> 图片地址 </label>
                    <div class="col-sm-9">
                        <input id="file_upload"  type="file" multiple="true" >
                        <img style="display: none" id="upload_org_code_img" src="" width="150" height="150">
                        <input id="file_upload_image" name="image" type="hidden" multiple="true" value="">
                    </div>
                </div>
                <div class="clearfix form-actions">
                    <div class="col-md-offset-3 col-md-9">
                        <button class="btn btn-info" type="submit">
                            <i class="icon-ok bigger-110"></i>
                            保存
                        </button>
                    </div>
                </div>
            </form>
        </div><!-- /.col -->
    </div><!-- /.row -->
</div><!-- /.page-content -->

{load href="__STATIC__/admin/js/image.js" /}
<script>
    $(".sy").addClass("active open");
    $(".sy .dblb").addClass("active");

    // $('#li1_btn').click(function(){
    //     $('#goods_form').ajaxSubmit({
    //         url:"",
    //         dataType: "json",
    //         beforeSend: function() {
    //             $('#li1_btn').attr('disabled','true');
    //             $('#li1_btn').attr('value','上传中...');
    //         },
    //         type: "post",
    //         contentType: "application/x-www-form-urlencoded; charset=utf-8",
    //         success : function(data){
    //             alert(data.msg);
    //             if(0==data.errorCode){
    //                 location.href = document.referrer;
    //             }else{
    //                 $('#li1_btn').removeAttr('disabled');
    //                 $('#li1_btn').attr('value','保存');
    //             }
    //         }
    //     });
    // });
</script>
